home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / Other Langs / Tickle-4.0 (tcl) / library / help / tcl / control / while < prev   
Encoding:
Text File  |  1993-10-26  |  865 b   |  21 lines  |  [TEXT/$Tcl]

  1.  
  2.           while test body
  3.  
  4.  
  5.      DESCRIPTION
  6.           The while command evaluates test as an  expression  (in  the
  7.           same  way  that  expr evaluates its argument).  The value of
  8.           the expression must a proper boolean value; if it is a  true
  9.           value  then body is executed by passing it to the Tcl inter-
  10.           preter.  Once body has been executed then test is  evaluated
  11.           again,  and the process repeats until eventually test evalu-
  12.           ates to a false boolean value.   Continue  commands  may  be
  13.           executed  inside  body to terminate the current iteration of
  14.           the loop, and break commands may be executed inside body  to
  15.           cause immediate termination of the while command.  The while
  16.           command always returns an empty string.
  17.  
  18.  
  19.      KEYWORDS
  20.           boolean value, loop, test, while
  21.